<?php

 include("../funcs/funcs.php");
 $connect=localConnectUsm(); 
 $data=array();
 $id=intval($_GET['id']); 
 $sql="select zycode,zyname from zhuanye where collegecode='".$id."'";
 $query=mssql_query($sql);
 while($row=mssql_fetch_array($query)){
    $zyid[]=$row[0];
    $zyname[]=iconv('gb2312','utf-8',$row[1]);
 }
 $data['zyid']=$zyid;
 $data['zyname']=$zyname;
 mssql_close();
 echo json_encode($data);
?>